const path = require('path') 

module.exports = {
	devServer: {
		overlay: {
			wraning: false,
			errors: false
		},
		compress: true,
		hot: true, 
		// host:'0.0.0.0',
		port: 8080,
		proxy: {
			'/api': {
				target: 'https://xmjzapi.isca.cn:1443/api', //跨域到的地址
				// secure: BASE_URL.includes('https') ? false : true,
				changeOrigin: true,
				pathRewrite: {
					"^/api": ""
				}
			}
		}
	},
	pluginOptions: {
	    'style-resources-loader': {
	      preProcessor: 'less',
	      patterns: [
	        path.resolve(__dirname, './src/assets/less/common.less')
	      ]
	    }
	},
	lintOnSave: false
}